import layoutHeaderAside from '@/layout/header-aside'

const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const meta = { auth: true }

export default {
  path: '/demo',
  name: 'demo',
  meta,
  redirect: { name: 'demo-page1' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'page1', name: `${pre}page1`, component: _import('demo/page1'), meta: { meta, title: '页面 1' }},
    { path: 'page2', name: `${pre}page2`, component: _import('demo/page2'), meta: { meta, title: '页面 2' }},
    { path: 'page3', name: `${pre}page3`, component: _import('demo/page3'), meta: { meta, title: '页面 3' }},
    { path: 'page4', name: `${pre}page4`, component: _import('demo/page4'), meta: { meta, title: '页面 4' }}
  ])('demo-')
}
